﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace PMIS.UI.Unit
{
	public partial class 部门管理 : BaseDockForm
	{
		#region 私有变量

		#endregion

		#region 单例
		/// <summary>
		/// 本类的实例
		/// </summary>
		private static 部门管理 _form = null;
		/// <summary>
		/// 用于本类实现单例的Locker
		/// </summary>
		private static object locker = new object();
		/// <summary>
		/// 构造函数
		/// </summary>
		private 部门管理()
		{
			InitializeComponent();
		}
		/// <summary>
		/// 获取本窗体的实例
		/// </summary>
		/// <returns></returns>
		public static 部门管理 GetInstance()
		{
			if (_form == null || _form.IsDisposed)
			{
				lock (locker)
				{
					if (_form == null || _form.IsDisposed)
						_form = new 部门管理();
				}
			}

			return _form;
		}
		#endregion
	}
}
